<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/24
  Time: 8:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改页面</title>
  <style>
    div {
      width: 600px;
      margin: 1em auto;
      padding: 10px;
      background: darkgray;
      text-align: center;
    }
  </style>
</head>
<body>
  <div>
    <h3>修改页面</h3>
    <form action="${r}/phone/update" method="post">
      编号：<input value="${phone.id}" name="id" readonly placeholder="编号只是可读哦"><br><br>
      请输入要修改的手机名：<input value="${phone.name}" name="name"><br><br>
      请输入要修改的价格：<input value="${phone.price}"  name="price" type="number"><br><br>
      请输入要修改的型号：<input value="${phone.model}" name="model"><br><br>
      请输入要修改的颜色：<input value="${phone.color}" name="color"><br><br>
      请输入要修改的产地：<input value="${phone.origin}" name="origin"><br><br>
      请输入要修改的时间：<input value="${phone.time}" type="date" name="time"><br><br>
      <button>提交修改</button>
    </form>
    <a href="/phone/list">返回首页</a>
  </div>
</body>
</html>
